package com.fesine.ch02.synLockIn_1;

/**
 * 可重入锁测试
 * @Author: Fesine
 * @CreateDate:2016/6/28
 * @UpdateUser:修改人名称
 * @UpdateDate:2016/6/28
 * @UpdateRemark:修改具体的内容
 */
public class Service {
    synchronized public void service1() {
        System.out.println("service1");
        service2();
    }

    synchronized public void service2() {
        System.out.println("service2");
        service3();
    }
    synchronized public void service3() {
        System.out.println("service3");
    }
}
